package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

@Entity
@Table(name = "PRAXIS_ZYTOLOGIE_BUCH")
public class ZytologyTBL implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ZytologyTBL() {
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "EINTRAG_NUMMER")
	private int zytoNumber;

	private String datum;

	private String year;

	@Column(name = "LOCKED")
	private Boolean locked;

	@OneToOne
	@JoinColumn(name = "LAST_EDITOR", nullable = true)
	private AccountingTBL lastEditor;

	@Column(name = "LAST_EDITED")
	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Calendar lastEditTime;

	@ManyToOne
	@JoinColumn(name = "patientin_matricule_nummer", nullable = false)
	private CustomerTBL customer;

	private String versandZiel;
	private String versandDatum;
	private String ergebnis;
	private String anzahl;
	private String rueckDatum;
	private boolean zeileMakiert = false;
	private boolean specialText = false;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public int getZytoNumber() {
		return zytoNumber;
	}

	public void setZytoNumber(int zytoNumber) {
		this.zytoNumber = zytoNumber;
	}

	public String getDatum() {
		return datum;
	}

	public void setDatum(String datum) {
		this.datum = datum;
	}

	public CustomerTBL getCustomer() {
		return customer;
	}

	public void setCustomer(CustomerTBL customer) {
		this.customer = customer;
	}

	public String getVersandZiel() {
		return versandZiel;
	}

	public void setVersandZiel(String versandZiel) {
		this.versandZiel = versandZiel;
	}

	public String getVersandDatum() {
		return versandDatum;
	}

	public void setVersandDatum(String versandDatum) {
		this.versandDatum = versandDatum;
	}

	public String getErgebnis() {
		return ergebnis;
	}

	public void setErgebnis(String ergebnis) {
		this.ergebnis = ergebnis;
	}

	public String getRueckDatum() {
		return rueckDatum;
	}

	public void setRueckDatum(String rueckDatum) {
		this.rueckDatum = rueckDatum;
	}

	public String getAnzahl() {
		return anzahl;
	}

	public void setAnzahl(String anzahl) {
		this.anzahl = anzahl;
	}

	public boolean isZeileMakiert() {
		return zeileMakiert;
	}

	public void setZeileMakiert(boolean zeileMakiert) {
		this.zeileMakiert = zeileMakiert;
	}

	public boolean isSpecialText() {
		return specialText;
	}

	public void setSpecialText(boolean specialText) {
		this.specialText = specialText;
	}

	public Boolean getLocked() {
		return locked;
	}

	public void setLocked(Boolean locked) {
		this.locked = locked;
	}

	public AccountingTBL getLastEditor() {
		return lastEditor;
	}

	public void setLastEditor(AccountingTBL lastEditor) {
		this.lastEditor = lastEditor;
	}

	public Calendar getLastEditTime() {
		return lastEditTime;
	}

	public void setLastEditTime(Calendar lastEditTime) {
		this.lastEditTime = lastEditTime;
	}

}
